package vcp.models;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;

import javax.swing.JTextField;

import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Orders;

public class SaveParkingModel  extends AbstractModel{
	
	public void saveParking(Orders bean) {
		//SimpleClient client = null;
		//client = SimpleClient.getInstance();
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);
		Message msg = new Message(bean, "SavingParking");
		try {
			client.sendToServer(msg);
			//Thread.sleep(500);
			//msg = client.getReturnMsg();
		} catch (Exception ex) {
			System.out.println(ex.toString() + " SavingParkingModel->saveParking");
		}
		//setChanged();
		//notifyObservers(msg);
	}

	
}
